package com.asg.entity;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

public class Student {
	private Integer studentId;
	private String studentName;
	private String gender;
	private String qq;
	private String phone;
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date  birthday;
	private Integer classId;
	private String className;

	@Override
	public String toString() {
		return "Student [studentId=" + studentId + ", studentName=" + studentName + ", gender=" + gender + ", qq=" + qq
				+ ", phone=" + phone + ", birthday=" + birthday + ", classId=" + classId + ", className=" + className
				+ ", getStudentId()=" + getStudentId() + ", getStudentName()=" + getStudentName() + ", getGender()="
				+ getGender() + ", getQq()=" + getQq() + ", getPhone()=" + getPhone() + ", getBirthday()="
				+ getBirthday() + ", getClassId()=" + getClassId() + ", getClassName()=" + getClassName()
				+ ", getClass()=" + getClass() + ", hashCode()=" + hashCode() + ", toString()=" + super.toString()
				+ "]";
	}

	public Integer getStudentId() {
		return studentId;
	}

	public void setStudentId(Integer studentId) {
		this.studentId = studentId;
	}

	public String getStudentName() {
		return studentName;
	}

	public void setStudentName(String studentName) {
		this.studentName = studentName;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getQq() {
		return qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public Integer getClassId() {
		return classId;
	}

	public void setClassId(Integer classId) {
		this.classId = classId;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public Student(Integer studentId, String studentName, String gender, String qq, String phone, Date birthday,
			Integer classId, String className) {
		super();
		this.studentId = studentId;
		this.studentName = studentName;
		this.gender = gender;
		this.qq = qq;
		this.phone = phone;
		this.birthday = birthday;
		this.classId = classId;
		this.className = className;
	}

	public Student() {
		super();
		// TODO Auto-generated constructor stub
	}

}
